import { showMsg, hualinSync } from '../../../../../vuex/action.js'

export default {
  data() {
    return {
      activeName: 0
    }
  },
  computed: {
  },
  methods: {
    toogleMenuActive(name) {
      this.activeName = name
    },
    hualinSync() {
      this.xHualinSync()
      .then((res) => {
        this.xShowMsg({
          type: 'success',
          content: '同步数据成功'
        })
      })
    }
  },
  vuex: {
    actions: {
      xHualinSync: hualinSync,
      xShowMsg: showMsg
    },
    getters: {
      payType: state => state.payType
    }
  },
  ready() {
    this.activeName = this.$route.name
  }
}
